home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-03-04 | 1.6 KB | 57 lines | [TEXT/ToyS] |
- property gasLocation : {40, 60}
- property gasLoc2 : {60, 200}
-
-
- on run
- set max to 222
-
- set progW to display progress titled "Counting Progress" subtitled ¬
- "Yo yo yo, here we go…" maximum max located at gasLocation
-
- set newLabel to ""
- set altCol to false
-
- repeat with i from 1 to max
- if (i mod 7) = 0 then
- if (newLabel is "Love is …") then
- set newLabel to "… the seventh wave."
- set altCol to true
- else
- set newLabel to "Love is …"
- set altCol to false
- end if
- end if
-
- if (canceled of (display progress progW value i labeled newLabel alternate color altCol)) then
- set cancer to display dialog "Are you sure you want to quit this awesome demo?" buttons {"Continue", "Quit"} default button 2
- if (the button returned of cancer is "Quit") then
- beep
- display progress progW with disposal
- return 0
- end if
- end if
- end repeat
-
- display progress progW subtitled "Counting again" labeled "Down"
-
- repeat with i from max to 1 by -1
- display progress progW value i
- end repeat
-
- display progress progW labeled "… and back"
- set anotherProgress to display progress titled "Parallel" labeled "Where's my MP?" maximum max * 2 located at gasLoc2
-
- repeat with i from 1 to max * 2
- display progress progW value i
- display progress anotherProgress value i
- end repeat
-
- -- Save window location in property
- set gasLocation to screen location of (display progress progW)
- set gasLoc2 to screen location of (display progress anotherProgress)
-
- -- Close it!
- display progress progW with disposal
- display progress anotherProgress with disposal
- end run
-